package com.manage.platform.controller;

import com.manage.platform.excel.UserExcelServiceImpl;
import com.manage.platform.utils.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * YWD
 * 2025/11/18
 */
@AllArgsConstructor
@RestController
@RequestMapping("/excel")
@Tag(name = "报表管理(后台自用)")
public class ExcelController {

    private final UserExcelServiceImpl userExcelServiceImpl;

    /**
     * 生成用户模板
     */
    @GetMapping("/createUserTemplate")
    @Operation(summary = "生成用户模板")
    public R<String> createUserTemplate(){
        return R.ok(userExcelServiceImpl.createReport());
    }

}
